<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>JSON Voorhees: jsonv::formats_builder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://www.mathjax.org/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">JSON Voorhees
   </div>
   <div id="projectbrief">Killer JSON for C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classjsonv_1_1formats__builder.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classjsonv_1_1formats__builder-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">jsonv::formats_builder Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2182d6f3546ea37205b23247e7a53964"><td class="memTemplParams" colspan="2"><a class="anchor" id="a2182d6f3546ea37205b23247e7a53964"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a2182d6f3546ea37205b23247e7a53964"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1adapter__builder.html">adapter_builder</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>type</b> ()</td></tr>
<tr class="separator:a2182d6f3546ea37205b23247e7a53964"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a146ab4af1c0d68f9c1335f83905ea180"><td class="memTemplParams" colspan="2"><a class="anchor" id="a146ab4af1c0d68f9c1335f83905ea180"></a>
template&lt;typename T , typename F &gt; </td></tr>
<tr class="memitem:a146ab4af1c0d68f9c1335f83905ea180"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1adapter__builder.html">adapter_builder</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>type</b> (F &amp;&amp;f)</td></tr>
<tr class="separator:a146ab4af1c0d68f9c1335f83905ea180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4615ed7bd31588e5d2846bace0db603"><td class="memTemplParams" colspan="2"><a class="anchor" id="af4615ed7bd31588e5d2846bace0db603"></a>
template&lt;typename TEnum &gt; </td></tr>
<tr class="memitem:af4615ed7bd31588e5d2846bace0db603"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>enum_type</b> (std::string enum_name, std::initializer_list&lt; std::pair&lt; TEnum, <a class="el" href="classjsonv_1_1value.html">value</a> &gt;&gt; mapping)</td></tr>
<tr class="separator:af4615ed7bd31588e5d2846bace0db603"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbafc15e3c2368ea790260684bc474e7"><td class="memTemplParams" colspan="2"><a class="anchor" id="abbafc15e3c2368ea790260684bc474e7"></a>
template&lt;typename TEnum &gt; </td></tr>
<tr class="memitem:abbafc15e3c2368ea790260684bc474e7"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>enum_type_icase</b> (std::string enum_name, std::initializer_list&lt; std::pair&lt; TEnum, <a class="el" href="classjsonv_1_1value.html">value</a> &gt;&gt; mapping)</td></tr>
<tr class="separator:abbafc15e3c2368ea790260684bc474e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b39129f24dc8a9969fe7de9d21a3c27"><td class="memTemplParams" colspan="2"><a class="anchor" id="a4b39129f24dc8a9969fe7de9d21a3c27"></a>
template&lt;typename TPointer &gt; </td></tr>
<tr class="memitem:a4b39129f24dc8a9969fe7de9d21a3c27"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1polymorphic__adapter__builder.html">polymorphic_adapter_builder</a><br class="typebreak"/>
&lt; TPointer &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>polymorphic_type</b> (std::string discrimination_key=&quot;&quot;)</td></tr>
<tr class="separator:a4b39129f24dc8a9969fe7de9d21a3c27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a426eaa5d0970a633a456f7268be75126"><td class="memTemplParams" colspan="2"><a class="anchor" id="a426eaa5d0970a633a456f7268be75126"></a>
template&lt;typename TPointer , typename F &gt; </td></tr>
<tr class="memitem:a426eaa5d0970a633a456f7268be75126"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1polymorphic__adapter__builder.html">polymorphic_adapter_builder</a><br class="typebreak"/>
&lt; TPointer &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>polymorphic_type</b> (std::string discrimination_key, F &amp;&amp;f)</td></tr>
<tr class="separator:a426eaa5d0970a633a456f7268be75126"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06933ddc64c17a3af502943144a385e5"><td class="memTemplParams" colspan="2"><a class="anchor" id="a06933ddc64c17a3af502943144a385e5"></a>
template&lt;typename F &gt; </td></tr>
<tr class="memitem:a06933ddc64c17a3af502943144a385e5"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>extend</b> (F &amp;&amp;func)</td></tr>
<tr class="separator:a06933ddc64c17a3af502943144a385e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3f5e20cc8fbdf0eff03df46cfad8fc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3f5e20cc8fbdf0eff03df46cfad8fc8"></a>
<a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>register_adapter</b> (const <a class="el" href="classjsonv_1_1adapter.html">adapter</a> *p)</td></tr>
<tr class="separator:ae3f5e20cc8fbdf0eff03df46cfad8fc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a454a1a3af73249491c006b7e08955332"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a454a1a3af73249491c006b7e08955332"></a>
<a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>register_adapter</b> (std::shared_ptr&lt; const <a class="el" href="classjsonv_1_1adapter.html">adapter</a> &gt; p)</td></tr>
<tr class="separator:a454a1a3af73249491c006b7e08955332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aeb1adb896d9480cfa9a97c556f1948"><td class="memTemplParams" colspan="2"><a class="anchor" id="a4aeb1adb896d9480cfa9a97c556f1948"></a>
template&lt;typename TOptional &gt; </td></tr>
<tr class="memitem:a4aeb1adb896d9480cfa9a97c556f1948"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>register_optional</b> ()</td></tr>
<tr class="separator:a4aeb1adb896d9480cfa9a97c556f1948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3723240bd62f5e8a56072ffc78b351a"><td class="memTemplParams" colspan="2"><a class="anchor" id="ab3723240bd62f5e8a56072ffc78b351a"></a>
template&lt;typename TContainer &gt; </td></tr>
<tr class="memitem:ab3723240bd62f5e8a56072ffc78b351a"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>register_container</b> ()</td></tr>
<tr class="separator:ab3723240bd62f5e8a56072ffc78b351a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f400c6c8d26d138e7f5c16bf137c4e4"><td class="memTemplParams" colspan="2"><a class="anchor" id="a1f400c6c8d26d138e7f5c16bf137c4e4"></a>
template&lt;typename TWrapper &gt; </td></tr>
<tr class="memitem:a1f400c6c8d26d138e7f5c16bf137c4e4"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>register_wrapper</b> ()</td></tr>
<tr class="separator:a1f400c6c8d26d138e7f5c16bf137c4e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab659729e41d3c7e7346180ec25c11730"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab659729e41d3c7e7346180ec25c11730"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator formats</b> () const </td></tr>
<tr class="separator:ab659729e41d3c7e7346180ec25c11730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a149f644e52dc9d1ea35990cb92f608e1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a149f644e52dc9d1ea35990cb92f608e1"></a>
<a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference_type</b> (std::type_index type)</td></tr>
<tr class="separator:a149f644e52dc9d1ea35990cb92f608e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a215d65d0ceddd17e8c5cc137b7800fed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a215d65d0ceddd17e8c5cc137b7800fed"></a>
<a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference_type</b> (std::type_index type, std::type_index from)</td></tr>
<tr class="separator:a215d65d0ceddd17e8c5cc137b7800fed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f4052163f27e150ae0ad26042a03edb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1formats__builder.html#a8f4052163f27e150ae0ad26042a03edb">check_references</a> (<a class="el" href="classjsonv_1_1formats.html">formats</a> other, const std::string &amp;name=&quot;&quot;)</td></tr>
<tr class="memdesc:a8f4052163f27e150ae0ad26042a03edb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check that, when combined with the <code>formats</code> <em>other</em>, all types referenced by this <code><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a></code> will get decoded properly.  <a href="#a8f4052163f27e150ae0ad26042a03edb">More...</a><br/></td></tr>
<tr class="separator:a8f4052163f27e150ae0ad26042a03edb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="serialization__builder_8hpp_source.html#l01159">1159</a> of file <a class="el" href="serialization__builder_8hpp_source.html">serialization_builder.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8f4052163f27e150ae0ad26042a03edb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a>&amp; jsonv::formats_builder::check_references </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1formats.html">formats</a>&#160;</td>
          <td class="paramname"><em>other</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check that, when combined with the <code>formats</code> <em>other</em>, all types referenced by this <code><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a></code> will get decoded properly. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>if non-empty and this function throws, this <em>name</em> will be provided in the exception's <code>what</code> string. This can be useful if you are running multiple <code>check_references</code> calls and you want to name the different checks.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::logic_error</td><td>if <code>formats</code> this <code><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a></code> is generating, when combined with the provided <em>other</em> <code>formats</code>, cannot properly serialize all the types. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>jsonv/<a class="el" href="serialization__builder_8hpp_source.html">serialization_builder.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>jsonv</b></li><li class="navelem"><a class="el" href="classjsonv_1_1formats__builder.html">formats_builder</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
